<?php
function vget($url)
{
    
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, $url);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  $data = curl_exec($curl);
  if (curl_errno($curl)) {return 'ERROR '.curl_error($curl);}
  curl_close($curl);
   return $data ;
}
    $url='http://api.36wu.com/Movie/GetHotMovie?location=%E7%8F%A0%E6%B5%B7';
    $json=vget($url);
    
     $obj=json_decode($json);
    
      $data=$obj->data;
      $i=0;
       foreach ( $data as $unit )
       {
           $i++;
           $arr[$i]['context']=$unit->context;
           $arr[$i]['time']=$unit->time;
    
      }
     // print_r($arr);
?>